package edu.buffalo.cse.cse486_586.entity;

public class DeliveredMessage implements Message {
	private int provideId;
	private String messageId;
	private String content;
	private Double squence;
	
	public DeliveredMessage(){
	}
	
	public DeliveredMessage(int pId, String mId, String content){
		this.provideId = pId;
		this.messageId = mId;
		this.content = content;
	}
	
	public DeliveredMessage(int pId, String mId, String content, double sequence){
		this.provideId = pId;
		this.messageId = mId;
		this.content = content;
		this.squence = sequence;
	}
	
	public int getProvideId() {
		return provideId;
	}
	public void setProvideId(int provideId) {
		this.provideId = provideId;
	}
	public String getMessageId() {
		return messageId;
	}
	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

	public Double getSquence() {
		return squence;
	}

	public void setSquence(Double squence) {
		this.squence = squence;
	}
	
	public String toString(){
		return this.messageId +"//"+this.content +"//"+ this.squence;
	}
}
